eFAWATEERcom BANK API icon

eFAWATEERcom BANK API

(0 reviews)

Account Upload

URLs :

Description : This service allows the channels or bank to upload a customer profile to manage all accounts (Customer Profiles) and Billing Accounts in eFAWATEERcom system.

Channels that need to upsert the customer profile to the eFAWATEERcom system will send account upload request with the mandatory fields mentioned in the request format and in return eFAWATEERcom will provide a unique identification number joebppsNo for the customer’s ‘idType’, ‘id’, ‘nation’ combination. All new accounts are created in an 'Active' status. If already same account is present then remaining details passed will be updated for the same ‘idType’, ‘id’, ‘nation’ combination. Currently, eFAWATEERcom does not allow bulks for Account Upload service.

Mulesoft Request:

Mandatory Headers: x-channel-id,x-client-trace-id, x-bank-id,client_id, client_secret

Optional Headers: x-sub-channel-id, x-user-id, Authorization, x-debug-flag, x-customer-id

Request Body: Application/json

Field NameTypeLengthOccurrenceDescriptionValidation
acctsObjectM
acctArrayCrepeatable
idTypeEnum, String3MRepresents a unique identifier type (The official number used to identify a customer)Enum: NAT PAS IQA BIS GOV NGO DPC
idstring20M
nationEnum, String2MRepresents the nationality of the CustomerEnum: JO - Jordanian IQ - Iraq GB - British KW - Kuwait
namestring50M
phonestring20O
addressstring100O
emailstring50O
End of ‘ acct ‘
End of ‘ accts ‘
{
"accts": {
"acct": [
{
"idType": "NAT",
"id": "9901001703",
"nation": "JO",
"name": "Ibrahim",
"phone": "+962786665356",
"address": "Amman",
"email": "ihamed@example.com"
}
]
}
}

Mulesoft Response:

Success Response: (200)

Response Body: application/json

Field NameTypeLengthOccurrenceDescriptionValidation
statusObjectM
successBooleanMtrue false
codeString10MError Code“0” incase of success or Error Code
reasonCodeString50OError Type or Error categoryAdd this tag only incase of error
arabicMessageString200MEnglish message translated to Arabicتمت العملية بنجاح in case of success or arabic translated error in case of known errors
englishMessageString200MDescription about the processing“The Operation has been Successfully Completed” Or error Description
End of status
responseObjectOPresent if success = true
AcctObjectMrepeatable
IdTypestring3M
Idstring20M
Nationchar2M
ResultObjectM
ErrorCodestring3M
errorDescstring100M
severityEnum, String7MEnum: Error, Info
End of result
joebppsNoInteger10M
End of acct
End of accts
End of ‘ response ‘
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"accts": {
"acct": [
{
"idType": "NAT",
"id": "9901001703",
"nation": "JO",
"result": {
"errorCode": "0",
"errorDesc": "Success",
"severity": "Info"
},
"joebppsNo": "29"
}
]
}
}
}

Sample Error Response:

Error codes :

500:

content-type: JSON

{
"success": false,
"code": "500",
"reasonCode": "InternalServerError",
"arabicMessage": "خطأ في الخادم الداخلي",
"englishMessage": "InvalidXMLSchema\nError : The 'Phone' element has an invalid value according to its data type.   Location : Line No:17, Line Position:24"
}

Reviews